import request from '@/utils/request'

// 查询投放列表
export function listWorkOrder(query) {
  return request({
    url: '/system/workOrder/list',
    method: 'get',
    params: query
  })
}

// 查询投放详细
export function getWorkOrder(id) {
  return request({
    url: '/system/workOrder/' + id,
    method: 'get'
  })
}

// 新增投放
export function addWorkOrder(data) {
  return request({
    url: '/system/workOrder',
    method: 'post',
    data: data
  })
}

// 修改投放
export function updateWorkOrder(data) {
  return request({
    url: '/system/workOrder',
    method: 'put',
    data: data
  })
}

// 删除投放
export function delWorkOrder(id) {
  return request({
    url: '/system/workOrder/' + id,
    method: 'delete'
  })
}


// 查询域名地址列表
export function getRealmList() {
  return request({
    url: '/system/workOrder/getRealmList',
    method: 'get'
  })
}
// 查询投手列表
export function getPeoples() {
  return request({
    url: '/system/workOrder/getPeoples',
    method: 'get'
  })
}